/*
 * Created on 6 oct. 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package fr.jade.console.cmd;

import fr.jade.console.core.AbstractCommand;
import fr.jade.console.core.Command;
import fr.jade.console.core.Environment;

/**
 * @author ssicard
 */
public class GetEnvVar extends AbstractCommand implements Command{

  public String getDescription(){
    return "prints JTerm environment variable";
  }
  
  public String getHelp() {
    return "getenv <key>";
  }
  
  public String getName() {
    return "getenv";
  }
  
	public Object execute (String[] args, Environment env) throws Throwable {
		System.out.println(env.getEnvVar(args[1]));
		return null;
	}
}
